import store from '../store'
import { checkIsMobile } from '../store/models/counterSlice'

(function(win,adaptive){
 var isMobile =  /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/ig.test(win.navigator.userAgent)
 
 var doc = win.document
 var docEl = doc.documentElement
 // console.log(win.history);
//  console.log(isMobile);
  store.dispatch(checkIsMobile(isMobile))
 // if (isMobile){
 //  console.log('移动端');
 //  docEl.style.fontSize = 16 + 'px'
 // } else {
 //  docEl.style.fontSize = 16 + 'px'
 //  console.log('pc端');
 // }
})(window,window["adaptive"] || (window["adaptive"] = {}))